package com.mipo.springmvc.maximum.springmvc.viewresolver.BeanNameViewResolver.view;

import java.util.Date;  
import java.util.Map;  
  
import javax.servlet.http.HttpServletRequest;  
import javax.servlet.http.HttpServletResponse;  
  
import org.springframework.stereotype.Component;  
import org.springframework.web.servlet.View;  
  
@Component("helloView")
public class HelloView implements View{  
  
    public String getContentType() {
        return "text/html";
    }
    
    public void render(Map<String, ?> model, HttpServletRequest request, HttpServletResponse response) throws Exception {
        response.getWriter().print("Welcome to View:"+new Date());
    }  
  
}